{# @var services \Shopware\Core\Framework\Script\ServiceStubs #}
{% block response %}
    {% set blogs = services.repository.search('custom_entity_blog', hook.request) %}

    {% set response = services.response.json({'blogs': blogs}) %}

    {% do hook.setResponse(response) %}

    {% do debug.dump('some debug information') %}
{% endblock %}
